package br.com.fatecpg.locacaobicicletas;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/** @author Davi */
public class Principal extends javax.swing.JFrame {

    public boolean éGerente = false;
    CadastroBicicleta cadbike = new CadastroBicicleta();
    ConsultaBicicleta consbike = new ConsultaBicicleta();
    CadastroCliente cadcli = new CadastroCliente();
    ConsultaCliente conscli = new ConsultaCliente();
    CadastroEstacao cadest = new CadastroEstacao();
    ConsultaEstacao consest = new ConsultaEstacao();
    CadastroFuncionario cadfunc = new CadastroFuncionario();
    ConsultaFuncionario consfunc = new ConsultaFuncionario();
    Locacao loc = new Locacao();

    public Principal() {

        initComponents();
        desktopPane.add(cadbike);
        desktopPane.add(consbike);
        desktopPane.add(cadcli);
        desktopPane.add(conscli);
        desktopPane.add(cadest);
        desktopPane.add(consest);
        desktopPane.add(cadfunc);
        desktopPane.add(consfunc);
        desktopPane.add(loc);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        desktopPane = new javax.swing.JDesktopPane();
        loginjPanel = new javax.swing.JPanel();
        usuariojLabel = new javax.swing.JLabel();
        usuariojTextField = new javax.swing.JTextField();
        senhajLabel = new javax.swing.JLabel();
        senhajTextField = new javax.swing.JPasswordField();
        entrarjButton = new javax.swing.JButton();
        sairjButton = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        cadastroMenu = new javax.swing.JMenu();
        cadbicicletaMenuItem = new javax.swing.JMenuItem();
        cadclienteMenuIten = new javax.swing.JMenuItem();
        cadestacaoMenuItem = new javax.swing.JMenuItem();
        cadfuncionarioMenuItem = new javax.swing.JMenuItem();
        consultaMenu = new javax.swing.JMenu();
        consbicicletaMenuItem = new javax.swing.JMenuItem();
        consclienteMenuItem = new javax.swing.JMenuItem();
        consestacaoMenuItem = new javax.swing.JMenuItem();
        consfuncionarioMenuItem = new javax.swing.JMenuItem();
        operacoesMenu = new javax.swing.JMenu();
        locacaoMenuItem = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        loginjPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        usuariojLabel.setFont(new java.awt.Font("Tahoma", 0, 24));
        usuariojLabel.setText("Usuario:");

        usuariojTextField.setFont(new java.awt.Font("Tahoma", 0, 24));
        usuariojTextField.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        usuariojTextField.setFocusCycleRoot(true);
        usuariojTextField.setNextFocusableComponent(senhajTextField);

        senhajLabel.setFont(new java.awt.Font("Tahoma", 0, 24));
        senhajLabel.setText("Senha:");

        senhajTextField.setFont(new java.awt.Font("Tahoma", 1, 24));
        senhajTextField.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        senhajTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                senhajTextFieldActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout loginjPanelLayout = new javax.swing.GroupLayout(loginjPanel);
        loginjPanel.setLayout(loginjPanelLayout);
        loginjPanelLayout.setHorizontalGroup(
            loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loginjPanelLayout.createSequentialGroup()
                .addGap(66, 66, 66)
                .addGroup(loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(usuariojLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(senhajLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(senhajTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                    .addComponent(usuariojTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE))
                .addGap(62, 62, 62))
        );
        loginjPanelLayout.setVerticalGroup(
            loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loginjPanelLayout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(usuariojLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(usuariojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(loginjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(senhajLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(senhajTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE))
                .addContainerGap(49, Short.MAX_VALUE))
        );

        loginjPanel.setBounds(10, 10, 438, 220);
        desktopPane.add(loginjPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        entrarjButton.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        entrarjButton.setText("ENTRAR");
        entrarjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                entrarjButtonActionPerformed(evt);
            }
        });
        entrarjButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                entrarjButtonKeyPressed(evt);
            }
        });
        entrarjButton.setBounds(530, 10, 140, 40);
        desktopPane.add(entrarjButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        sairjButton.setFont(new java.awt.Font("Tahoma", 0, 24));
        sairjButton.setText("SAIR");
        sairjButton.setEnabled(false);
        sairjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sairjButtonActionPerformed(evt);
            }
        });
        sairjButton.setBounds(530, 60, 140, 40);
        desktopPane.add(sairjButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/locacaobicicletas/img/_bike-icon.png"))); // NOI18N
        jLabel1.setBounds(530, 120, 140, 100);
        desktopPane.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cadastroMenu.setMnemonic('f');
        cadastroMenu.setText("Cadastro");
        cadastroMenu.setEnabled(false);

        cadbicicletaMenuItem.setMnemonic('s');
        cadbicicletaMenuItem.setText("Bicicleta");
        cadbicicletaMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadbicicletaMenuItemActionPerformed(evt);
            }
        });
        cadastroMenu.add(cadbicicletaMenuItem);

        cadclienteMenuIten.setMnemonic('o');
        cadclienteMenuIten.setText("Cliente");
        cadclienteMenuIten.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadclienteMenuItenActionPerformed(evt);
            }
        });
        cadastroMenu.add(cadclienteMenuIten);

        cadestacaoMenuItem.setMnemonic('x');
        cadestacaoMenuItem.setText("Estação");
        cadestacaoMenuItem.setEnabled(false);
        cadestacaoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadestacaoMenuItemActionPerformed(evt);
            }
        });
        cadastroMenu.add(cadestacaoMenuItem);

        cadfuncionarioMenuItem.setMnemonic('a');
        cadfuncionarioMenuItem.setText("Funcionario");
        cadfuncionarioMenuItem.setEnabled(false);
        cadfuncionarioMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadfuncionarioMenuItemActionPerformed(evt);
            }
        });
        cadastroMenu.add(cadfuncionarioMenuItem);

        menuBar.add(cadastroMenu);

        consultaMenu.setMnemonic('e');
        consultaMenu.setText("Consulta");
        consultaMenu.setEnabled(false);

        consbicicletaMenuItem.setMnemonic('s');
        consbicicletaMenuItem.setText("Bicicleta");
        consbicicletaMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consbicicletaMenuItemActionPerformed(evt);
            }
        });
        consultaMenu.add(consbicicletaMenuItem);

        consclienteMenuItem.setMnemonic('o');
        consclienteMenuItem.setText("Cliente");
        consclienteMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consclienteMenuItemActionPerformed(evt);
            }
        });
        consultaMenu.add(consclienteMenuItem);

        consestacaoMenuItem.setMnemonic('x');
        consestacaoMenuItem.setText("Estação");
        consestacaoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consestacaoMenuItemActionPerformed(evt);
            }
        });
        consultaMenu.add(consestacaoMenuItem);

        consfuncionarioMenuItem.setMnemonic('a');
        consfuncionarioMenuItem.setText("Funcionario");
        consfuncionarioMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consfuncionarioMenuItemActionPerformed(evt);
            }
        });
        consultaMenu.add(consfuncionarioMenuItem);

        menuBar.add(consultaMenu);

        operacoesMenu.setMnemonic('h');
        operacoesMenu.setText("Operações");
        operacoesMenu.setEnabled(false);

        locacaoMenuItem.setMnemonic('c');
        locacaoMenuItem.setText("Locação");
        locacaoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                locacaoMenuItemActionPerformed(evt);
            }
        });
        operacoesMenu.add(locacaoMenuItem);

        menuBar.add(operacoesMenu);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 696, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cadestacaoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadestacaoMenuItemActionPerformed
        cadest.setVisible(true);
    }//GEN-LAST:event_cadestacaoMenuItemActionPerformed

private void consestacaoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consestacaoMenuItemActionPerformed
    consest.setVisible(true);
    // TODO add your handling code here:
}//GEN-LAST:event_consestacaoMenuItemActionPerformed

private void entrarjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_entrarjButtonActionPerformed

    try {
        String usuario = usuariojTextField.getText();
        String senha = senhajTextField.getText();
        ResultSet rs = ConexãoBike.executar("select * from usuario where nm_usuario = '" + usuario + "'");

        if (rs != null) {
            if (rs.next()) {
                if (rs.getString("nm_senha").equals(senha)) {
                    if (rs.getString("ic_gerente_sim_nao").toUpperCase().equals("S")) {
                        éGerente = true;
                        cadastroMenu.setEnabled(true);
                        consultaMenu.setEnabled(true);
                        operacoesMenu.setEnabled(true);
                        entrarjButton.setEnabled(false);
                        usuariojTextField.setEnabled(false);
                        senhajTextField.setEnabled(false);
                        usuariojLabel.setEnabled(false);
                        senhajLabel.setEnabled(false);
                        cadfuncionarioMenuItem.setEnabled(true);
                        cadestacaoMenuItem.setEnabled(true);
                        sairjButton.setEnabled(true);
                        JOptionPane.showMessageDialog(null, "Bem Vindo Sr. " + usuario + " !!!", "Logon", JOptionPane.PLAIN_MESSAGE);

                    } else {
                        éGerente = false;
                        cadastroMenu.setEnabled(true);
                        consultaMenu.setEnabled(true);
                        operacoesMenu.setEnabled(true);
                        entrarjButton.setEnabled(false);
                        usuariojTextField.setEnabled(false);
                        senhajTextField.setEnabled(false);
                        usuariojLabel.setEnabled(false);
                        senhajLabel.setEnabled(false);
                        sairjButton.setEnabled(true);
                        JOptionPane.showMessageDialog(null, "Bem Vindo " + usuario + " !!!", "Logon", JOptionPane.PLAIN_MESSAGE);

                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Senha Invalida");
                    usuariojTextField.setText("");
                    senhajTextField.setText("");
                }
            } else {
                JOptionPane.showMessageDialog(null, "Usuario Invalido");
                usuariojTextField.setText("");
                senhajTextField.setText("");
            }
        }
    } catch (Exception ex) {
        System.out.println(ex.getMessage());
    }
}//GEN-LAST:event_entrarjButtonActionPerformed

private void sairjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sairjButtonActionPerformed
    cadastroMenu.setEnabled(false);
    consultaMenu.setEnabled(false);
    operacoesMenu.setEnabled(false);
    entrarjButton.setEnabled(true);
    usuariojTextField.setEnabled(true);
    senhajTextField.setEnabled(true);
    usuariojLabel.setEnabled(true);
    senhajLabel.setEnabled(true);
    cadfuncionarioMenuItem.setEnabled(false);
    cadestacaoMenuItem.setEnabled(false);
    usuariojTextField.setText("");
    senhajTextField.setText("");
    // TODO add your handling code here:
    consbike.setVisible(false);
    conscli.setVisible(false);
    consest.setVisible(false);
    consfunc.setVisible(false);
    cadbike.setVisible(false);
    cadcli.setVisible(false);
    cadfunc.setVisible(false);
    cadest.setVisible(false);
    loc.setVisible(false);
}//GEN-LAST:event_sairjButtonActionPerformed

private void cadbicicletaMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadbicicletaMenuItemActionPerformed
    cadbike.setVisible(true);

}//GEN-LAST:event_cadbicicletaMenuItemActionPerformed

private void cadclienteMenuItenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadclienteMenuItenActionPerformed
    cadcli.setVisible(true);
    // TODO add your handling code here:
}//GEN-LAST:event_cadclienteMenuItenActionPerformed

private void cadfuncionarioMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadfuncionarioMenuItemActionPerformed
    cadfunc.setVisible(true);
// TODO add your handling code here:
}//GEN-LAST:event_cadfuncionarioMenuItemActionPerformed

private void consbicicletaMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consbicicletaMenuItemActionPerformed
    consbike.setVisible(true);
    // TODO add your handling code here:
}//GEN-LAST:event_consbicicletaMenuItemActionPerformed

private void consclienteMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consclienteMenuItemActionPerformed
    conscli.setVisible(true);
// TODO add your handling code here:
}//GEN-LAST:event_consclienteMenuItemActionPerformed

private void consfuncionarioMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consfuncionarioMenuItemActionPerformed
    consfunc.setVisible(true);
// TODO add your handling code here:
}//GEN-LAST:event_consfuncionarioMenuItemActionPerformed

private void locacaoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_locacaoMenuItemActionPerformed
    loc.setVisible(true);
    // TODO add your handling code here:
}//GEN-LAST:event_locacaoMenuItemActionPerformed

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
    try {
        ConexãoBike.Conectar("bike", "bike");
    } catch (Exception ex) {
        JOptionPane.showMessageDialog(this, "Erro" + ex.getMessage(), "Erro:", JOptionPane.ERROR_MESSAGE);
        System.exit(0);
    }    // TODO add your handling code here:
}//GEN-LAST:event_formWindowOpened

private void senhajTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_senhajTextFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_senhajTextFieldActionPerformed

private void entrarjButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_entrarjButtonKeyPressed
// TODO add your handling code here:
    if (evt.getKeyCode() == 10) {

        try {
            String usuario = usuariojTextField.getText();
            String senha = senhajTextField.getText();
            ResultSet rs = ConexãoBike.executar("select * from usuario where nm_usuario = '" + usuario + "'");

            if (rs != null) {
                if (rs.next()) {
                    if (rs.getString("nm_senha").equals(senha)) {
                        if (rs.getString("ic_gerente_sim_nao").toUpperCase().equals("S")) {
                            éGerente = true;
                            cadastroMenu.setEnabled(true);
                            consultaMenu.setEnabled(true);
                            operacoesMenu.setEnabled(true);
                            entrarjButton.setEnabled(false);
                            usuariojTextField.setEnabled(false);
                            senhajTextField.setEnabled(false);
                            usuariojLabel.setEnabled(false);
                            senhajLabel.setEnabled(false);
                            cadfuncionarioMenuItem.setEnabled(true);
                            cadestacaoMenuItem.setEnabled(true);
                            sairjButton.setEnabled(true);
                            JOptionPane.showMessageDialog(null, "Bem Vindo Sr. " + usuario + " !!!", "Logon", JOptionPane.PLAIN_MESSAGE);

                        } else {
                            éGerente = false;
                            cadastroMenu.setEnabled(true);
                            consultaMenu.setEnabled(true);
                            operacoesMenu.setEnabled(true);
                            entrarjButton.setEnabled(false);
                            usuariojTextField.setEnabled(false);
                            senhajTextField.setEnabled(false);
                            usuariojLabel.setEnabled(false);
                            senhajLabel.setEnabled(false);
                            sairjButton.setEnabled(true);
                            JOptionPane.showMessageDialog(null, "Bem Vindo " + usuario + " !!!", "Logon", JOptionPane.PLAIN_MESSAGE);

                        }
                    } else {
                        JOptionPane.showMessageDialog(null, "Senha Invalida");
                        usuariojTextField.setText("");
                        senhajTextField.setText("");
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Usuario Invalido");
                    usuariojTextField.setText("");
                    senhajTextField.setText("");
                }
            }
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }

    }
}//GEN-LAST:event_entrarjButtonKeyPressed
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new Principal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu cadastroMenu;
    private javax.swing.JMenuItem cadbicicletaMenuItem;
    private javax.swing.JMenuItem cadclienteMenuIten;
    private javax.swing.JMenuItem cadestacaoMenuItem;
    private javax.swing.JMenuItem cadfuncionarioMenuItem;
    private javax.swing.JMenuItem consbicicletaMenuItem;
    private javax.swing.JMenuItem consclienteMenuItem;
    private javax.swing.JMenuItem consestacaoMenuItem;
    private javax.swing.JMenuItem consfuncionarioMenuItem;
    private javax.swing.JMenu consultaMenu;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JButton entrarjButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem locacaoMenuItem;
    private javax.swing.JPanel loginjPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenu operacoesMenu;
    private javax.swing.JButton sairjButton;
    private javax.swing.JLabel senhajLabel;
    private javax.swing.JPasswordField senhajTextField;
    private javax.swing.JLabel usuariojLabel;
    private javax.swing.JTextField usuariojTextField;
    // End of variables declaration//GEN-END:variables
}
